package com.xinqi.modules.third.controller;

import com.xinqi.common.base.response.R;
import com.xinqi.common.core.web.controller.BaseController;
import com.xinqi.modules.third.service.WxService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 微信凭证相关功能
 * @author dzy
 */

@Slf4j
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/wx")
public class SysWxController extends BaseController {

    private final WxService wxService;

    /**
     * 微信凭证获取
     */
    @GetMapping("/config")
    public R<Void> getConfig(String url) {
        return wxService.getConfig(url);
    }

}
